Check if the node has a immediate parent Note: parent method already does this check
See Implementation
Check if the node has a immediate parent Note: parent method already does this check